#FROM livingobjects/jre8
#VOLUME /tmp
#ADD ace-admin.jar app.jar
#ADD wait-for-it.sh /wait-for-it.sh
#RUN bash -c 'touch /app.jar'
#ENTRYPOINT ["java","-Djava.security.egd=file:/dev/./urandom","-jar","/app.jar"]

FROM openjdk:8-jdk
LABEL maintainer=fengli

RUN /bin/cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && echo 'Asia/Shanghai' >/etc/timezone

COPY target/ruoyi-admin.jar /app.jar
EXPOSE 8080

# hospital-manage
ENTRYPOINT ["/bin/sh","-c","java -Dfile.encoding=utf8  -Djava.security.egd=file:/dev/./urandom -jar /app.jar "]